const Storage = {
  key: "crun_",
  set(key = '', data) {
    return uni.setStorageSync(this.key + key, data);
  },
  get(key, def) {
    return uni.getStorageSync(this.key + key) || def;
  },
  setAsync(opt = {}) {
    return uni.setStorage(opt);
  },
  getAsync(opt = {}) {
    return uni.getStorage(opt = {});
  },
};

export default Storage;